import http from "@/api/http";
// 获取用户列表
export const getUserList = (params: any) => {
  return http.post(`/user/list`, params);
};
//获取所有用户的微信用户
export const UserList = () => {
  return http.get(`/user/all`);
};
//导出用户数据excel
export const getUserExport = () => {
  return http.get(`/user/export`, { responseType: "blob" });
};

//删除用户单个id
export const deleteId = (id: string) => {
  return http.delete(`/user/delete/${id}`);
};

//批量删除用户
export const deleteIds = (params: { id: string[] }) => {
  return http.post(`/user/deleteBatch`, params);
};
